package com.ftg.learn;

/**
 * @author
 * @date 2024/2/29
 */
public class Student {
    //6 大原则[开闭原则]  一个法则来讲
    private int sno;

    private String name;

    public int getSno() {
        return sno;
    }

    public void setSno(int sno) {
        this.sno = sno;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public static void main(String[] args) {
        //stu 变量
        //Student 数据类型吗？
        //new Student();创建student的实例
        Student stu = new Student();
        stu.setSno(1);
        stu.setName("aaa");
    }
}
